package com.codebo.homiematchbackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codebo.homiematchbackend.model.dto.user.FollowUserRequest;
import com.codebo.homiematchbackend.model.dto.user.RegisterRequest;
import com.codebo.homiematchbackend.model.dto.user.UserQueryRequest;
import com.codebo.homiematchbackend.model.entity.User;
import com.codebo.homiematchbackend.model.vo.UserVO;
import jakarta.servlet.http.HttpServletRequest;


import java.util.List;

/**
 * @author 25912
 * @description 针对表【user(用户)】的数据库操作Service
 * @createDate 2025-09-13 14:46:21
 */
public interface UserService extends IService<User>
{
    UserVO login(String username, String password, HttpServletRequest httpServletRequest);
    Long register(RegisterRequest registerRequest);

    boolean followUser(FollowUserRequest followUserRequest);
    boolean logout(HttpServletRequest httpServletRequest);

    List<UserVO> listUserByRecommend(HttpServletRequest request, UserQueryRequest userQueryRequest);






    //---------
    UserVO getUserVO(User user);

    User getLoginUser(HttpServletRequest httpServletRequest);

    QueryWrapper<User> getQueryWrapper(UserQueryRequest userQueryRequest);

    List<UserVO> getUserVOList(List<User> users);



}
